package com.keyinong.dingcan.fragment;

import java.util.ArrayList;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

public class OrderViewPagerAdapter extends FragmentPagerAdapter {
	ArrayList<Fragment> fragmetList;

	public OrderViewPagerAdapter(FragmentManager i,ArrayList<Fragment> fragmetList) {
		super(i);
		this.fragmetList=fragmetList;
	}

	@Override
	public Fragment getItem(int arg0) {
		// TODO Auto-generated method stub
		return fragmetList.get(arg0);
	}

	@Override
	public int getCount() {
		// TODO Auto-generated method stub
		return fragmetList.size();
	}

}
